﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QLTV_Public;
using QLTV_Data;

namespace QLTV_BLL
{
   public class DangKyCaBiet_BLL
   {
       DangKyCaBiet_Data dangKy_Data = new DangKyCaBiet_Data();
       public DataTable TaoBang(string sql)
       {
           return dangKy_Data.TaoBang(sql);
       }
       public DataTable LayDuLieu(DangKyCaBiet_Public obj, string nhanDe, DateTime toNgayDangKy)
       {
           return dangKy_Data.LayDuLieu(obj,nhanDe,toNgayDangKy);
       }
       public int Insert(DangKyCaBiet_Public soCaBiet, DangKyCaBiet_Public maTaiLieu, DangKyCaBiet_Public ngayDangKy, DangKyCaBiet_Public tinhTrangTL, DangKyCaBiet_Public trangThaiSD, DangKyCaBiet_Public trangThaiMuon)
       {

           return dangKy_Data.Insert(soCaBiet,maTaiLieu,ngayDangKy,tinhTrangTL,trangThaiSD,trangThaiMuon);
       }
       public int Update(DangKyCaBiet_Public soCaBiet, DangKyCaBiet_Public maTaiLieu, DangKyCaBiet_Public ngayDangKy, DangKyCaBiet_Public tinhTrangTL, DangKyCaBiet_Public trangThaiSD, DangKyCaBiet_Public trangThaiMuon)
       {
           return dangKy_Data.Insert(soCaBiet, maTaiLieu, ngayDangKy, tinhTrangTL, trangThaiSD, trangThaiMuon);
       }
       public int Delete(DangKyCaBiet_Public soCaBiet)
       {
           
           return dangKy_Data.Delete(soCaBiet);
       }
       public int Update_TinhTrangTL(DangKyCaBiet_Public tinhTrang, DangKyCaBiet_Public trangthai, DangKyCaBiet_Public soCaBiet)
       {
           return dangKy_Data.Update_TinhTrangTL(tinhTrang,trangthai,soCaBiet);
       }
       public int Insert_DangKyTaoMaCaBiet(DangKyCaBiet_Public dk)
       {
           return dangKy_Data.Insert_DangKyTaoMaCaBiet(dk);
       }
    }
}
